﻿@model Scorpicore.Models.Banknote

<h2>Въвеждане на банкнота</h2>


@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset class="form-horizontal">
        <legend>Банкнота</legend>

        <div class="control-group">
            @Html.LabelFor(model => model.SerialNumber, new { @class = "control-label" })
            <div class="controls">
                @Html.EditorFor(model => model.SerialNumber)
                @Html.ValidationMessageFor(model => model.SerialNumber, null, new { @class = "help-inline" })
            </div>
        </div>

        <div class="control-group">
            @Html.LabelFor(model => model.Letters, new { @class = "control-label" })
            <div class="controls">
                @Html.EditorFor(model => model.Letters)
                @Html.ValidationMessageFor(model => model.Letters, null, new { @class = "help-inline" })
            </div>
        </div>

        <div class="control-group">
            @Html.LabelFor(model => model.Distance, new { @class = "control-label" })
            <div class="controls">
                @Html.EditorFor(model => model.Distance)
                @Html.ValidationMessageFor(model => model.Distance, null, new { @class = "help-inline" })
            </div>
        </div>

        <div class="control-group">
            @Html.LabelFor(model => model.ImageUrl, new { @class = "control-label" })
            <div class="controls">
                @Html.EditorFor(model => model.ImageUrl)
                @Html.ValidationMessageFor(model => model.ImageUrl, null, new { @class = "help-inline" })
            </div>
        </div>

        <div class="control-group">
            @Html.LabelFor(model => model.LastPlace, new { @class = "control-label" })
            <div class="controls">
                @Html.EditorFor(model => model.LastPlace)
                @Html.ValidationMessageFor(model => model.LastPlace, null, new { @class = "help-inline" })
            </div>
        </div>

        <div class="control-group">
            @Html.LabelFor(model => model.Denomination, new { @class = "control-label" })
            <div class="controls">
                @Html.EditorFor(model => model.Denomination)
                @Html.ValidationMessageFor(model => model.Denomination, null, new { @class = "help-inline" })
            </div>
        </div>

        <div class="form-actions no-color">
            <input type="submit" value="Регистрирай" class="btn" />
        </div>
    </fieldset>
}

<div>
    @Html.ActionLink("Назад", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

